package com.yegs.jltqc.dao;

import com.yegs.jltqc.VO.RpProduce;
import com.yegs.jltqc.VO.RpProduceBarcode;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface RpProduceBarcodeRepository extends JpaRepository<RpProduceBarcode,Long> {

    RpProduceBarcode findFirstByCbarcodeOrderByIdDesc(String cbarcode);

    List<RpProduceBarcode> findAllByCbarcodeLikeAndRefIdIsNotNull(String cbarcode);


}
